package com.example.administrator.ceshi190111;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.sleepyzzz.photo_selector.activity.PhotoPickerActivity;

import static com.sleepyzzz.photo_selector.activity.PhotoPickerActivity.*;


public class MainActivity extends AppCompatActivity {
    private Button btn1,btn2;
    public static final String url = "http://192.168.31.76/thinkphp1/index.php/Image/upload";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btn1=findViewById(R.id.btn1);
        btn2=findViewById(R.id.btn2);
        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,MultipleActivity.class);
           startActivity(intent);
            }
        });
btn2.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {

      actionStart(MainActivity.this, 10, null, url);
    }
});


    }
}
